package com.config;

import com.Hidden.LoginInter;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

//@Configuration(拦截器)
public class HandlerConfig implements WebMvcConfigurer {
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new LoginInter()).addPathPatterns("/**").excludePathPatterns("/Login.do")
                .excludePathPatterns("/**/*.html");
    }
}
